package com.dayuanit.atm.mapper;

import com.dayuanit.atm.entity.Transfer;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface TransferMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Transfer record);

    int insertSelective(Transfer record);

    Transfer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Transfer record);

    int updateByPrimaryKey(Transfer record);

    List<Transfer> listTransfer(@Param("dealTime") Date dealTime, @Param("status") Integer status, @Param("offset") Integer offset, @Param("prePageNum") Integer prePageNum);

    int updateStatus(@Param("id") Integer id, @Param("oldStatus") Integer oldStatus, @Param("newStatus") Integer newStatus);

}